﻿using BlazorAdmin.Interface;
using BlazorAdmin.Services;
using Microsoft.Extensions.DependencyInjection;
using Pangeo.Admin.Interface.BussinessDb;
using Pangeo.Admin.Interface.HrmDb;
using Pangeo.Admin.Services.BaBizDb;
using Pangeo.Admin.Services.FineReportDb;
using Pangeo.Admin.Services.HrmDb;

namespace Pangeo.Admin.Services
{
    public static class _ServiceRegister
    {
        // 添加应用的服务
        public static IServiceCollection AddBlazorAdminServices(this IServiceCollection services)
        {
            services.AddSingleton<IDevice, DeviceService>();
            services.AddSingleton<IHrm, HrmService>();
            services.AddSingleton<IQrqc, QrqcService>();

            // EntityFrameWork ORM
            services.AddDbContext<_FrDbContext>();

            return services;
        }
    }
}
